<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>注册</title>
</head>
<body>
	<form action="register" method="post">
		<input name="id" type="hidden" value="${user.id}">
		<table>
			<caption>注册</caption>
			<tbody>
				<tr>
					<th>用户名：</th><td><input type="text" name="username" value="${user.username} "></td>
				</tr>
				<c:if test="${errorStr!=null}">
					<tr>
						<th colspan="2"><font color="red">${errorStr}</font></th>
					</tr>
				</c:if>
				<tr>
					<th>密码：</th><td><input type="text" name="password" value="${user.mima} "></td>
				</tr>
				<tr>
					<th>姓名：</th><td><input type="text" name="name" value="${user.name} "></td>
				</tr>
				<tr>
					<td><input type="submit" value="提交"><input type="reset" value="重置"></td>
				</tr>
			</tbody>
		</table>
	</form>
</body>
</html>